#include "MPlayer.h"

MPlayer::MPlayer()
{

}

MPlayer::MPlayer(QTcpSocket *socket, QString username, int x, int y, QString bonus)
{
    this->socket = socket;
    this->username = username;
    this->x = x;
    this->y = y;
    this->bonus = bonus;
}

MPlayer::~MPlayer()
{

}

// GETTERS
QString MPlayer::get_id()
{
    return this->id;
}

QString MPlayer::get_x()
{
    return this->x;
}

QString MPlayer::get_y()
{
    return this->y;
}

QString MPlayer::get_username()
{
    return this->username;
}

QString MPlayer::get_bonus()
{
    return this->bonus;
}

QTcpSocket* MPlayer::get_socket()
{
    return this->socket;
}

QString MPlayer::get_exp()
{
    return this->exp;
}

QString MPlayer::get_level()
{
    return this->level;
}

QString MPlayer::get_direction()
{
    return this->direction;
}

//SETTER
void MPlayer::set_id(QString id)
{
    this->id = id;
}

void MPlayer::set_x(QString x)
{
    this->x = x;
}

void MPlayer::set_y(QString y)
{
    this->y = y;
}

void MPlayer::set_username(QString username)
{
    this->username = username;
}

void MPlayer::set_bonus(QString bonus)
{
    this->bonus = bonus;
}

void MPlayer::set_socket(QTcpSocket* socket)
{
    this->socket = socket;
}

void MPlayer::set_exp(QString exp)
{
    this->exp = exp;
}

void MPlayer::set_level(QString level)
{
    this->level = level;
}

void MPlayer::set_direction(QString direction)
{
    this->direction = direction;
}
